package com.itheima.demo1.ZengDemo1;

import java.time.LocalDateTime;

/**
 * @ClassName order
 * @Author 16799
 * @Date 2025/9/29 16:48
 * @Version 1.0
 * @Description TODO
 **/
public class order {
    private int id;
    private String name;
    private LocalDateTime time;
    private double price;


    public order() {
    }

    public order(int id, String name, LocalDateTime time, double price) {
        this.id = id;
        this.name = name;
        this.time = time;
        this.price = price;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return time
     */
    public LocalDateTime getTime() {
        return time;
    }

    /**
     * 设置
     * @param time
     */
    public void setTime(LocalDateTime time) {
        this.time = time;
    }

    /**
     * 获取
     * @return price
     */
    public double getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(double price) {
        this.price = price;
    }

    public String toString() {
        return "order{id = " + id + ", name = " + name + ", time = " + time + ", price = " + price + "}";
    }
}
